from django.conf.urls import url

# from .views import
from rest_framework_jwt.views import obtain_jwt_token

from .views import statistical

urlpatterns = [
    # 使用jwt方式进行登陆的操作
    url(r'^authorizations/$', obtain_jwt_token),

    # 展示网站总人数
    url(r"^statistical/total_count/$", statistical.UserCountView.as_view()),

    # 展示网站当天注册人数
    url(r"^statistical/day_increment/$", statistical.UserTodayCountView.as_view()),

    # 展示日活跃人数
    url(r"^statistical/day_active/$", statistical.UserDayActiveCountView.as_view()),

    # 当天下单用户总量统计
    url(r'^statistical/day_orders/$', statistical.UserDayOrderCountView.as_view()),

]